package com.ruoyi.wifiauth.domain.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 广告完成上报请求
 * 
 * @author ruoyi
 */
public class AdCompleteRequest {
    
    /** 会话ID */
    @NotBlank(message = "会话ID不能为空")
    private String sessionId;
    
    /** 设备ID */
    @NotBlank(message = "设备ID不能为空")
    private String deviceId;
    
    /** 素材ID */
    @NotNull(message = "素材ID不能为空")
    private Long materialId;
    
    /** 观看时长(秒) */
    @NotNull(message = "观看时长不能为空")
    private Integer duration;
    
    /** 是否完整观看 */
    @NotNull(message = "完成状态不能为空")
    private Boolean completed;
    
    /** 行为类型 */
    private String action;
    
    public String getSessionId() {
        return sessionId;
    }
    
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
    
    public String getDeviceId() {
        return deviceId;
    }
    
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
    
    public Long getMaterialId() {
        return materialId;
    }
    
    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }
    
    public Integer getDuration() {
        return duration;
    }
    
    public void setDuration(Integer duration) {
        this.duration = duration;
    }
    
    public Boolean getCompleted() {
        return completed;
    }
    
    public void setCompleted(Boolean completed) {
        this.completed = completed;
    }
    
    public String getAction() {
        return action;
    }
    
    public void setAction(String action) {
        this.action = action;
    }
    
    @Override
    public String toString() {
        return "AdCompleteRequest{" +
                "sessionId='" + sessionId + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", materialId=" + materialId +
                ", duration=" + duration +
                ", completed=" + completed +
                ", action='" + action + '\'' +
                '}';
    }
} 